package homework;

import java.security.PublicKey;
import java.util.Scanner;

/**
 * @ClassName hom
 * @Description TODO
 * @Author 黑白灰色雨
 * @Date 2024/8/27 15:00
 * @Version 1.0
 */
public class homework06 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int x=scanner.nextInt();
        System.out.println("请输入一个整数：");
        int y=scanner.nextInt();
        int sum=x+y;
        int c=x-y;
        System.out.println("两数和是："+sum+"差是："+c);

    }
}
